package com.yekaile.carsystem.mapper;

import com.yekaile.carsystem.entity.RoleAuthority;
import com.yekaile.carsystem.entity.RoleAuthorityExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoleAuthorityMapper {
    long countByExample(RoleAuthorityExample example);

    int deleteByExample(RoleAuthorityExample example);

    int deleteByPrimaryKey(Integer roleAuthorityId);

    int insert(RoleAuthority record);

    int insertOrUpdate(RoleAuthority record);

    int insertOrUpdateSelective(RoleAuthority record);

    int insertSelective(RoleAuthority record);

    List<RoleAuthority> selectByExample(RoleAuthorityExample example);

    RoleAuthority selectByPrimaryKey(Integer roleAuthorityId);

    int updateByExampleSelective(@Param("record") RoleAuthority record, @Param("example") RoleAuthorityExample example);

    int updateByExample(@Param("record") RoleAuthority record, @Param("example") RoleAuthorityExample example);

    int updateByPrimaryKeySelective(RoleAuthority record);

    int updateByPrimaryKey(RoleAuthority record);

    int updateBatch(List<RoleAuthority> list);

    int updateBatchSelective(List<RoleAuthority> list);

    int batchInsert(@Param("list") List<RoleAuthority> list);

    List<RoleAuthority> selectByRoleIdAndSystemAuthorityId(@Param("roleId")Integer roleId,@Param("systemAuthorityId")Integer systemAuthorityId);


}
